﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace WorkStation.Frameworks.EasyBus.DbModel
{
    /// <summary>
    /// 消息发布日志
    /// </summary>
    public class MessagePublishLog
    {
        public string _id { get; set; }

        /// <summary>
        /// 消息唯一标识
        /// </summary>
        public string MessageId { get; set; }

        /// <summary>
        /// 目标队列
        /// </summary>
        public string Mq { get; set; }

        /// <summary>
        /// 订阅端名称
        /// </summary>
        public string SubscribeName { get; set; }

        /// <summary>
        /// 订阅端总线名称
        /// </summary>
        public string SubscribeBusName { get; set; }

        /// <summary>
        /// 订阅端总线负载节点名称
        /// </summary>
        public string SubscribeBusNodeName { get; set; }

        /// <summary>
        /// 发送是否成功
        /// </summary>
        public bool IsSuccess { get; set; }

        /// <summary>
        /// 错误内容
        /// </summary>
        public string Error { get; set; }

        /// <summary>
        /// 发布时间
        /// </summary>
        public DateTime PublishTime { get; set; }

        public MessagePublishLog()
        {
            this._id = Guid.NewGuid().ToString();
        }
    }
}
